﻿
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>万用申请单详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">万用申请单详情</h2>
    </div>
    <!-- 标题 -->
      <table class="table-bordered table" style="margin-top:0">
		<tr>
			<td> <button class="btn btn-info" type="button" onclick="dc({$aid})">导出Excel</button><span class="lr_5"></span><button class="btn btn-info" type="button" onclick="dcfull({$aid})">导出完整版Excel</button></td>
		</tr>
      </table>
     <table class="table table-bordered text-center bud_hei" style="margin-bottom: 0">
        <tr>
          <td style="min-width: 160px;width: 160px">编号</td>
            <td class="text-left" colspan="3">{$apply.no}</td>
        </tr>
        <tr>
            <td style="min-width: 160px;width: 160px">申请人</td>
            <td class="text-left">{$user.em_name}</td>
            <td style="min-width: 160px;width: 160px">申请人部门</td>
            <td class="text-left">{$user.de_name}</td>
        </tr>
          <tr>
            <td>申请时间</td>
            <td class="text-left">{$ctime}</td>
            <td>申请类型</td>
            <td class="text-left">{$type}</td>
        </tr>
         <tr>
            <td>主题</td>
            <td class="text-left" colspan="3">{$apply.title}</td>
        </tr>
          <tr>
            <td style="height: 150px">申请内容</td>
            <td class="text-left" colspan="3" style="vertical-align: top">{$apply.neirong}</td>
        </tr>
        
        <tr>
          <td>是否涉及费用</td>
          <td colspan="3" class="text-left">{if $apply.iscost==1}是{else/}否{/if}</td>
        </tr>
        {if $apply.iscost==1}
          <tr>
          <td>部门</td><td>{$cost.bm}</td><td>考核期</td><td>{$cost.kaohe}</td>
          </tr>
          <tr>
          <td>支付方式</td><td>{$cost.zhifu}</td><td>收款人</td><td>{$cost.shoukuan}</td>
          </tr>
          <tr>
            <td colspan="4">
               <table class="table table-bordered text-center bud_hei" style="margin-bottom: 0">
                <thead>
                  <tr class="text-center">
                      <th>费用科目</th><th>费用金额</th><th>费用说明</th>
                  </tr>
                  
                </thead>
                {volist name="detail" id="vo"}
                    <tr>
                      <td>{$vo.kemu}</td><td>{$vo.fee}</td><td>{$vo.remark}</td>
                    </tr>
                  {/volist}
               </table>
            </td>
          </tr>
        {/if}
        {if $apply.state==8}
        <tr>
          <td>作废理由</td>
          <td colspan="3" class="text-left">{$apply.feireason}</td>
        </tr>
           <tr>
          <td>作废时间</td>
          <td colspan="3" class="text-left">{$apply.feitime}</td>
        </tr>
          <tr>
          <td>作废操作人</td>
          <td colspan="3" class="text-left">{$apply.feiuser}</td>
        </tr>
        {/if}
    </table>
    {if $apply.fujian}
   <table class="table-bordered table" style="margin-top:0">
    <tr>
      <td>附件列表</td>

    </tr>
    <tr><td>
       {volist name="fujian" id="f"}
            <a onclick="down({$f.id})">{$f.file_name}</a>&nbsp;&nbsp;
          {/volist}
    </td></tr>
      </table>
        
      {/if}
     <table class="table table-bordered text-left bud_hei">
            <tr class="info">
                <th class="text-left font-bold">审批意见</th>
            </tr>
            {volist name="logs" id="l"}
          <tr>
              <td>{$l.USERNAME} 审批动作：{$l.MEMO}；审批意见：{if $l.COMMENTS}{$l.COMMENTS}{else/}无{/if}(审批时间：{$l.ACTIONTIME})</td>
          </tr>
          
          {/volist}
      </table>
       {if $apply.state==7}
       <div class="SuccessImg font-bold">
        已&nbsp;生&nbsp;效
      </div> 
      {/if}
      {if $apply.state==8}
      <div class="applyImg font-bold">
        已&nbsp;作&nbsp;废
      </div>
      {/if}
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
        <script src="__STATIC__/layout/js/common.js"></script>
        <script>
        function dcfull(id){
          window.open("{:url('daochufull')}?aid="+id);
        }
          function dc(id){
          window.open("{:url('daochu')}?aid="+id);
        }
                $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
        })
        </script>
</body>

</html>
